package com.tarena.day0927;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.border.LineBorder;//线条边框

public class RectMain {

	/**
	 * @param 显示RectMain
	 */
	public static void main(String[] args) {
		JFrame frame =new JFrame();
		frame.setSize(500,400);//设置窗口大小
		frame.setLocationRelativeTo(null);//居中
		frame.setVisible(true);
		frame.setLayout(null);//设置空布局
		RectStage stage =new RectStage();
		stage.setBorder(new LineBorder(new Color(100,100,100)));
		stage.setLocation(50,50);
		frame.getContentPane().add(stage);
	}

}
